package com.android.fragmentdemo
import android.accessibilityservice.AccessibilityService
import android.content.Intent
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.provider.Settings
import android.view.accessibility.AccessibilityEvent
import android.widget.FrameLayout
import com.hengfoxwolf.commonbase.base.BaseActivity2
import com.android.fragmentdemo.databinding.ActivityBackgroundTransparentBinding

class BackgroundTransparentActivity :
    BaseActivity2<ActivityBackgroundTransparentBinding>(ActivityBackgroundTransparentBinding::inflate) {

    override fun init(savedInstanceState: Bundle?) {

        //window.setBackgroundDrawableResource(R.color.color_00000000)
        //findViewById<FrameLayout>(android.R.id.content).setBackgroundColor(resources.getColor(R.color.color_00000000))

        val serviceIntent = Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS)
        serviceIntent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
        startActivity(serviceIntent)
    }

//    class MyAccessService : AccessibilityService() {
//        override fun onAccessibilityEvent(event: AccessibilityEvent?) {
//
//        }
//
//        override fun onInterrupt() {
//
//        }
//    }
}